package meisong.lagou.redis.config;

import lombok.Data;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Author 梅松
 * @Date 2022/2/4 13:02
 */
@ConfigurationProperties(prefix = "redis")
@Component
@Data
@ToString
public class RedisProperties {

    private List<String> nodes;

    private Integer timeout;

    private Integer maxIdle;

    private Integer maxTotal;

    private Integer maxWaitMillis;


}
